#!/usr/bin/make -f
# -*- makefile -*-

# People Presence - Predesys service plugin
# Version: 0.1.2
# Author: Jose A. Jimenez <jajimc@gmail.com>
# License: GPL 3.0 (see "license" file)

NAME 			= predesys-people-presence

DESTDIR			= ""
DEST_MAINDIR 	= $(DESTDIR)/usr/share/$(NAME)

SRC_MAINDIR		= src
SRC_ABOUTFILE	= about
SRC_LICENSEFILE	= license

compile:

install:	basic-install

basic-install:
	# Directories creation
	mkdir -p $(DEST_MAINDIR)
	
	# Program files installation
	install -p -m 0644 $(SRC_MAINDIR)/*.py $(DEST_MAINDIR)
	install -p -m 0644 $(SRC_ABOUTFILE) $(DEST_MAINDIR)
	install -p -m 0644 $(SRC_LICENSEFILE) $(DEST_MAINDIR)
	
uninstall:
	# Program files deletion
	rm -rf $(DEST_MAINDIR)
